<?php 
	session_start();
	require 'usercheck.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php 
	if($currenttype=='admin'||$currenttype=='boss'){
		require "connectdb.php";
		$issuccess = mysql_query("UPDATE reagent_data SET
		 ypmc='".$_POST['ypmc'].
	   "', lyl='".$_POST['lyl']. 
	   "', lyrq='".$_POST['lyrq'].
	   "', cfd='".$_POST['cfd'].
	   "', lyr='".$_POST['lyr'].
	   "', hxrq='".$_POST['hxrq'].
	   "', jfh='".$_POST['jfh'].
	   "', admin='".$_POST['admin'].
	   "', gg='".$_POST['gg'].
	   "', scrq='".$_POST['scrq'].
	   "', scs='".$_POST['scs'].
	   "', gb='".$_POST['gb'].
	   "', ghs='".$_POST['ghs'].
	   "', yc='".$_POST['yc'].
	   "', bzq='".$_POST['bzq'].
	   "', jd='".$_POST['jd'].
	   "', dylyzd='".$_POST['dylyzd'].
	      "' WHERE id='".$_GET['id']."'");

		
	echo("<meta http-equiv=\"refresh\" content=\"0;url=data.php\">");
	/*echo ("UPDATE reagent_data SET
		 ypmc='".$_POST['ypmc'].
	   "' lyl='".$_POST['lyl']. 
	   "' lyrq='".$_POST['lyrq'].
	   "' cfd='".$_POST['cfd'].
	   "' lyr='".$_POST['lyr'].
	   "' hxrq='".$_POST['hxrq'].
	   "' jfh='".$_POST['jfh'].
	   "' admin='".$_POST['admin'].
	   "' gg='".$_POST['gg'].
	   "' scrq='".$_POST['scrq'].
	   "' scs='".$_POST['scs'].
	   "' gb='".$_POST['gb'].
	   "' ghs='".$_POST['ghs'].
	   "' yc='".$_POST['yc'].
	   "' bzq='".$_POST['bzq'].
	      "' WHERE id='".$_GET['id']."'");*/
	}
?>	
</head>

<body>
<?php

?>
</body>
</html>